Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tag IDs support in VLAN data source #621

Conversation

Piethan
Copy link
Contributor

@Piethan Piethan commented Jul 24, 2024

Enhanced the VLAN data source by adding support for tag IDs. Introduced a new tag_ids field and adjusted the filtering logic to handle tags appropriately. This change allows users to retrieve VLAN tags as part of their configurations.

data "netbox_vlans" "vlans" {
  filter {
    name  = "tag"
    value = "managed_by_terraform"
  }
}
Changes to Outputs:
  + vlans = [
      + {
          + description = "Demo Test Group"
          + group_id    = 0
          + name        = "DEMO_TEST"
          + role        = 0
          + site        = 1
          + status      = "active"
          + tag_ids     = [
              + 5,
            ]
          + tenant      = 0
          + vid         = 2
        },
    ]

Enhanced the VLAN data source by adding support for tag IDs. Introduced a new `tag_ids` field and adjusted the filtering logic to handle tags appropriately. This change allows users to retrieve VLAN tags as part of their configurations.
@fbreckle fbreckle merged commit 4cbb28d into e-breuninger:master Jul 30, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants